//
//  BJBaseInvestmentView.m
//  SZBank
//
//  Created by rimi on 16/7/12.
//  Copyright © 2016年 LuoYao. All rights reserved.
//

#import "BJBaseInvestmentView.h"

@interface BJBaseInvestmentView ()
@end

@implementation BJBaseInvestmentView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
      
        frameWidth = self.frame.size.width;
        frameHeight = self.frame.size.height;
        //阴影背景
        UIImageView *lineImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.scrollView.frame) - frameHeight * 0.015, self.scrollView.frame.size.width, frameHeight * 0.04)];
        lineImage.image = [UIImage imageNamed:@"金融资讯_底边"];
        [self addSubview:lineImage];
        [self initUserInterface];
    }
    return self;
}
#pragma mark -- inits
- (void)initUserDataSource{
    
}
- (void)initUserInterface{
    
    
    
    [self addSubview:self.scrollView];
}

#pragma mark -- BtnClick


#pragma mark -- getters


- (UIScrollView *)scrollView{
    if (!_scrollView) {
        
        
        _scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0,  frameHeight * 0.06, frameWidth, frameHeight * 0.9)];
        
        //背景颜色
        _scrollView.backgroundColor = [UIColor whiteColor];
        //显示垂直标线
        _scrollView.showsVerticalScrollIndicator = YES;
        //设置contentsize
        _scrollView.contentSize= CGSizeMake(frameWidth , frameHeight * 0.92);
        //圆角处理
        _scrollView.layer.cornerRadius = frameWidth * 0.01;
        _scrollView.contentOffset = CGPointMake(0, 0);
  
        
    }
    return _scrollView ;
}


@end
